<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>

<script type="text/javascript">

  func();

  function func(){
      alert('我的第一个函数');
  }

</script>
</html>